package com.catmiw.stock.domain;

import java.util.Date;

public class StockPrice {
	public boolean equals(Object o){
		if (!(o instanceof StockPrice))
			return false;
		StockPrice s=(StockPrice)o;
		return code.equals(s.getCode())&&date.equals(s.getDate());
	}

	private String code;
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public double getClose() {
		return close;
	}
	public void setClose(double close) {
		this.close = close;
	}
	private Date date;
	private double close;
}
